#!/bin/sh

#--------------------------------------------------------------------
# Homebrew Utilities
#--------------------------------------------------------------------

case "$fn" in

    # Update Homebrew and installed packages
    "brew:update")
        echo "Updating Homebrew and its installed packages..."
        if [ "$echocommand" == "true" ]; then
            echo "${GREEN}brew update; brew upgrade;  brew upgrade --cask; brew cleanup;\n${NC}"
        fi
        brew update; brew upgrade;  brew upgrade --cask; brew cleanup;
    ;;

esac
